/******************************************************************************
 * Copyright (C) 2017 Chengdu Dlhd information industry co. LTD.
 * All Rights Reserved.
 * 本软件为成都顶联互动信息产业有限公司开发研制。未经本公司正式书面同意，其他任何个人、团体不得使用、复制、修改或发布本软件.
 *****************************************************************************/
package net.dgg.dggcloud.service.iboss.entity;

import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * <p>@Title 生产订单主表</p>
 * <p>@Version 1.0.0 版本号</p>
 * <p>@author @author 孙上峰</p>
 * <p>@date 2017-11-27 13:46:50 创建日期</p>
 * <p>Copyright © dgg group.All Rights Reserved. 版权信息</p>
 */
@Entity
@Table(name = "sc_order")
public class ScOrder extends BaseEntity {
    //数据库表名
    public static final String TABLE_NAME = "sc_order";

    //生产订单主编号
    @Column(name = "product_host_no")
    private String productHostNo;

    //订单金额(单位分)
    @Column(name = "amount")
    private Long amount;

    //销售订单ID
    @Column(name = "order_id")
    private Long orderId;

    //销售订单编号
    @Column(name = "order_no")
    private String orderNo;

    //生产主订单编号
    @Column(name = "sc_order_no")
    private String proOrderNo;

    //商机ID
    @Column(name = "business_id")
    private Long businessId;

    //商机编号
    @Column(name = "business_no")
    private String businessNo;

    //客户联系人电话
    @Column(name = "contact_phone")
    private String contactPhone;

    //客户名称
    @Column(name = "customer_name")
    private String customerName;

    //客户ID
    @Column(name = "customer_id")
    private Long customerId;

    //客户编号
    @Column(name = "customer_no")
    private String customerNo;

    //核款状态
    @Column(name = "pay_status")
    private String payStatus;

    //业态标识
    @Column(name = "business_type_id")
    private String businessTypeId;

    //业态名称
    @Column(name = "business_type_name")
    private String businessTypeName;

    //签单商务
    @Column(name = "business_user_id")
    private Long businessUserId;

    //订单状态
    @Column(name = "status")
    private String status;

    //部门ID
    @Column(name = "organization_id")
    private Long organizationId;

    //部门名称
    @Column(name = "organization_name")
    private String organizationName;

    //签单事业部ID
    @Column(name = "sign_org_id")
    private Long signOrgId;

    //签单事业部名称
    @Column(name = "sign_org_name")
    private String signOrgName;

    //贷款金额(单位分)
    @Column(name = "loans_amount")
    private Long loansAmount;

    //贷款年限
    @Column(name = "loans_num")
    private String loansNum;

    //贷款利息
    @Column(name = "loans_interest")
    private String loansInterest;

    //定金
    @Column(name = "earnest_money")
    private Long earnestMoney;

    //利息方式
    @Column(name = "loans_rate_type")
    private String loansRateType;

    //mortgage_address
    @Column(name = "mortgage_address")
    private String mortgageAddress;  // 抵押物地址

    //签单时间
    @Column(name = "place_order_time")
    private Date placeOrderTime;

    //内部成本
    @Column(name = "internal_cost")
    private Long internalCost;

    //外部成本
    @Column(name = "external_cost")
    private Long externalCost;

    //back_order_time
    @Column(name = "back_order_time")
    private Date backOrderTime;

    //back_order_reason
    @Column(name = "back_order_reason")
    private String backOrderReason;

    public String getProductHostNo() {
        return productHostNo;
    }

    public void setProductHostNo(String productHostNo) {
        this.productHostNo = productHostNo;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Long getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public String getBusinessNo() {
        return businessNo;
    }

    public void setBusinessNo(String businessNo) {
        this.businessNo = businessNo;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getCustomerNo() {
        return customerNo;
    }

    public void setCustomerNo(String customerNo) {
        this.customerNo = customerNo;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    public String getBusinessTypeId() {
        return businessTypeId;
    }

    public void setBusinessTypeId(String businessTypeId) {
        this.businessTypeId = businessTypeId;
    }

    public String getBusinessTypeName() {
        return businessTypeName;
    }

    public void setBusinessTypeName(String businessTypeName) {
        this.businessTypeName = businessTypeName;
    }

    public Long getBusinessUserId() {
        return businessUserId;
    }

    public void setBusinessUserId(Long businessUserId) {
        this.businessUserId = businessUserId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(Long organizationId) {
        this.organizationId = organizationId;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    public Long getSignOrgId() {
        return signOrgId;
    }

    public void setSignOrgId(Long signOrgId) {
        this.signOrgId = signOrgId;
    }

    public String getSignOrgName() {
        return signOrgName;
    }

    public void setSignOrgName(String signOrgName) {
        this.signOrgName = signOrgName;
    }

    public Long getLoansAmount() {
        return loansAmount;
    }

    public void setLoansAmount(Long loansAmount) {
        this.loansAmount = loansAmount;
    }

    public String getLoansNum() {
        return loansNum;
    }

    public void setLoansNum(String loansNum) {
        this.loansNum = loansNum;
    }

    public String getLoansInterest() {
        return loansInterest;
    }

    public void setLoansInterest(String loansInterest) {
        this.loansInterest = loansInterest;
    }

    public Long getEarnestMoney() {
        return earnestMoney;
    }

    public void setEarnestMoney(Long earnestMoney) {
        this.earnestMoney = earnestMoney;
    }

    public String getLoansRateType() {
        return loansRateType;
    }

    public void setLoansRateType(String loansRateType) {
        this.loansRateType = loansRateType;
    }

    public String getMortgageAddress() {
        return mortgageAddress;
    }

    public void setMortgageAddress(String mortgageAddress) {
        this.mortgageAddress = mortgageAddress;
    }

    public Date getPlaceOrderTime() {
        return placeOrderTime;
    }

    public void setPlaceOrderTime(Date placeOrderTime) {
        this.placeOrderTime = placeOrderTime;
    }

    public Long getInternalCost() {
        return internalCost;
    }

    public void setInternalCost(Long internalCost) {
        this.internalCost = internalCost;
    }

    public Long getExternalCost() {
        return externalCost;
    }

    public void setExternalCost(Long externalCost) {
        this.externalCost = externalCost;
    }

    public Date getBackOrderTime() {
        return backOrderTime;
    }

    public void setBackOrderTime(Date backOrderTime) {
        this.backOrderTime = backOrderTime;
    }

    public String getBackOrderReason() {
        return backOrderReason;
    }

    public void setBackOrderReason(String backOrderReason) {
        this.backOrderReason = backOrderReason;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getProOrderNo() {
        return proOrderNo;
    }

    public void setProOrderNo(String proOrderNo) {
        this.proOrderNo = proOrderNo;
    }
}

